<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>JavaScript 对象初次创建</title>
</head>

<body>

    <p id="demo"></p>

    <script>

        var person = { firstName: "老蔡", lastName: "Gates", age: 30, eyeColor: "blue" };

        document.getElementById("demo").innerHTML =
            person.firstName + " 今年已经 " + person.age + " 出头了。";
    </script>


</body>

</html>